package com.xgx.distqcp.Controller;

import io.jboot.web.controller.JbootController;
import io.jboot.web.controller.annotation.RequestMapping;
import redis.clients.jedis.Jedis;

@RequestMapping("/redis")
public class RedisController extends JbootController {

    public void index(){
        Jedis jedis=new Jedis("192.168.139.128",6379);
        jedis.auth("xgxxgx");
        jedis.set("a","xgxxgx");
        String c=jedis.get("a");
        renderText(c);
    }
}
